From d7a33b31e2be9aaaa4131cc392cf80571407c1e6 Mon Sep 17 00:00:00 2001 From: George Dunlap Date: Tue, 29 May 2012 10:31:36 +0100 Subject: [PATCH] libxl: When checking BDF of existing slots, function should be decimal, not hex Signed-off-by: George Dunlap Spotted-by: Konrad Wilk Acked-by: Konrad Rzeszutek Wilk Committed-by: Ian Campbell --- tools/libxl/libxl_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c index e9809950e6..3b82e9990e 100644 --- a/tools/libxl/libxl_pci.c +++ b/tools/libxl/libxl_pci.c @@ -480,7 +480,7 @@ static int pciback_dev_has_slot(libxl__gc *gc, libxl_device_pci *pcidev) return ERROR_FAIL; } - while(fscanf(f, "%x:%x:%x.%x\n", &dom, &bus, &dev, &func)==4) { + while(fscanf(f, "%x:%x:%x.%d\n", &dom, &bus, &dev, &func)==4) { if(dom == pcidev->domain && bus == pcidev->bus && dev == pcidev->dev -- 2.30.2